Minor tweaks.
This commit is contained in:
parent
6dce6de696
commit
de62a36fa7
@ -56,7 +56,7 @@ def main():
|
||||
spreadsheets = []
|
||||
uniqurl = []
|
||||
wpa = 'http://www.wpa.org.za/Events/DynamicEvents.asmx/BuildEventDisplay'
|
||||
for year in range(2016, dt.datetime.now().year + 1):
|
||||
for year in range(2018, dt.datetime.now().year + 1):
|
||||
log.debug("Finding results for {}".format(year));
|
||||
args = {"WPAExtra":"True","TimeColumn":"True","entityid":"674417","selectedyear":year,"selectedmonth":0,"commissionid":"0","selectedstate":"0","categoryid":0,"themeid":"46"}
|
||||
data = bytes(json.dumps(args).encode('utf8'))
|
||||
@ -99,7 +99,7 @@ def main():
|
||||
filename = os.path.basename(urlparts.path)
|
||||
if re.search('WALKRESULTS', filename, flags=re.IGNORECASE):
|
||||
continue
|
||||
log.info("Loading data from URL {}".format(url))
|
||||
log.warning("Loading data from URL {}".format(url))
|
||||
filepath = os.path.join(tmpdir, filename)
|
||||
with open(filepath, 'wb') as fp:
|
||||
fp.write(data)
|
||||
|
@ -35,7 +35,7 @@
|
||||
<td class="nowrap"><span class="label">Date</span> <span>{{ row.date|cleandate|e }}</span></td>
|
||||
<td class="long"><span class="label">Notes</span> <span>
|
||||
{%- if row.sex and row.sexposition and row.sexposition | int <= 100 %}{{ row.sexposition|ordinal|e }} {{ row.sex|lower|gender|e }}{% endif -%}
|
||||
{%- if row.sexposition and row.sexposition | int <= 100 and row.catposition and row.catposition | int <= 100 %} and {% endif -%}
|
||||
{%- if row.sex and row.sexposition and row.sexposition | int <= 100 and row.catposition and row.catposition | int <= 100 %} and {% endif -%}
|
||||
{%- if row.catposition and row.catposition | int <= 100 %}{{ row.catposition|ordinal|e }} in category{% endif -%}
|
||||
</span>
|
||||
</td>
|
||||
|
Loading…
Reference in New Issue
Block a user