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 + 'acro: ' + unicode(event.acro) + '\n'
t = t + 'titl: ' + unicode(event.title) + '\n'
t = t + 'date: ' + event.start.strftime("%Y-%m-%d") + '\n'
t = t + 'endd: ' + ee + '\n'
t = t + 'tags: ' + unicode(event.tags) + '\n'
t = t + 'view: ' + str(event.public_view) + '\n'
t = t + 'edit: ' + str(event.public_edit) + '\n'
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'