Tweaked a setting for better readability.
- Legacy-Id: 14840
This commit is contained in:
parent
1f16c0e3d8
commit
e29aa990a6
|
@ -1,7 +1,6 @@
|
|||
import datetime
|
||||
import json
|
||||
import urllib2
|
||||
import urlparse
|
||||
|
||||
from django.conf import settings
|
||||
from django.template.loader import render_to_string
|
||||
|
@ -85,7 +84,7 @@ def sort_sessions(sessions):
|
|||
def create_proceedings_templates(meeting):
|
||||
'''Create DBTemplates for meeting proceedings'''
|
||||
# Get meeting attendees from registration system
|
||||
url = urlparse.urljoin(settings.REGISTRATION_ATTENDEES_BASE_URL,meeting.number)
|
||||
url = settings.STATS_REGISTRATION_ATTENDEES_JSON_URL.format(number=meeting.number)
|
||||
try:
|
||||
attendees = json.load(urllib2.urlopen(url))
|
||||
except (ValueError, urllib2.HTTPError):
|
||||
|
|
|
@ -781,7 +781,7 @@ SECR_INTERIM_LISTING_DIR = '/a/www/www6/meeting/interim'
|
|||
SECR_MAX_UPLOAD_SIZE = 40960000
|
||||
SECR_PROCEEDINGS_DIR = '/a/www/www6s/proceedings/'
|
||||
SECR_PPT2PDF_COMMAND = ['/usr/bin/soffice','--headless','--convert-to','pdf','--outdir']
|
||||
REGISTRATION_ATTENDEES_BASE_URL = 'https://ietf.org/registration/attendees/'
|
||||
STATS_REGISTRATION_ATTENDEES_JSON_URL = 'https://ietf.org/registration/attendees/{number}'
|
||||
NEW_PROCEEDINGS_START = 95
|
||||
USE_ETAGS=True
|
||||
YOUTUBE_API_KEY = ''
|
||||
|
|
|
@ -219,7 +219,7 @@ def get_meeting_registration_data(meeting):
|
|||
of Registration records created."""
|
||||
num_created = 0
|
||||
num_processed = 0
|
||||
response = requests.get(settings.REGISTRATION_ATTENDEES_BASE_URL + meeting.number)
|
||||
response = requests.get(settings.STATS_REGISTRATION_ATTENDEES_JSON_URL.format(number=meeting.number))
|
||||
if response.status_code == 200:
|
||||
decoded = []
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue