Browse Source

Corrected script submission, to better manage the json/html format

remotes/origin/master
echarp 2 years ago
parent
commit
c3d386ff48
  1. 3
      app/models/event.rb
  2. 2
      public/adl-submit-latest-version
  3. 2
      public/adl-submit.py

3
app/models/event.rb

@ -78,9 +78,6 @@ class Event < ApplicationRecord
before_validation on: :create do
self.submission_time = Time.zone.now
self.decision_time = Time.zone.now
# Populate submitter using contact info if absent
self.submitter ||= contact
end
before_validation on: :update do

2
public/adl-submit-latest-version

@ -1 +1 @@
3.5
3.6

2
public/adl-submit.py

@ -315,7 +315,7 @@ def SubmitEvent(event, testOutputFile):
curl.setopt(curl.WRITEFUNCTION, contents.write)
if testOutputFile:
curl.setopt (curl.URL, baseUrl + 'events/preview')
curl.setopt (curl.URL, baseUrl + 'events/preview?format=html')
else:
curl.setopt (curl.URL, baseUrl + 'events')

Loading…
Cancel
Save