Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
t = t + 'city: ' + unicode(event.city) + '\n'
t = t + 'addr: ' + unicode(event.address) + '\n'
t = t + 'code: ' + unicode(event.postcode) + '\n'
t = t + 'land: ' + str_country + '\n'
t = t + 'tizo: ' + str_timezone + '\n'
t = t + 'lati: ' + str_latitude + '\n'
t = t + 'long: ' + str_longitude + '\n'
eu = EventUrl.objects.filter(event=event.id)
if len(eu) < 0:
t = t + 'url: ' + '\n'
else:
for e in eu.all():
t = t + 'url: ' + e.url_name + '|' + e.url + '\n'
et = EventTimechunk.objects.filter(event=event.id)
if len(et) < 0:
t = t + 'time: ' + '\n'
else:
for e in et.all():
t = t + 'time: ' + e.timechunk_name + '|' + str(e.timechunk_date) + '|' + str(e.timechunk_starttime) + '|' + str(e.timechunk_endtime) +'\n'
ed = EventDeadline.objects.filter(event=event.id)
if len(ed) < 0:
t = t + 'dl: ' + '\n'
else:
for e in ed.all():
t = t + 'dl: ' + e.deadline_name + '|' + str(e.deadline) + '\n'
t = t + 'desc: ' + unicode(event.description) + '\n'
return t