Indentation

merge-requests/8/head
Bob Mottram 2020-10-01 09:37:45 +01:00
parent 3fe7a8c498
commit 9875820469
2 changed files with 25 additions and 23 deletions

View File

@ -5537,7 +5537,8 @@ def htmlTimeline(defaultTimeline: str,
# happening today button
tlStr += \
'<center>\n<a href="' + usersPath + '/calendar?year=' + \
' <center>\n' + \
' <a href="' + usersPath + '/calendar?year=' + \
str(now.year) + '?month=' + str(now.month) + \
'?day=' + str(now.day) + '"><button class="buttonevent">' + \
translate['Happening Today'] + '</button></a>\n'
@ -5545,18 +5546,19 @@ def htmlTimeline(defaultTimeline: str,
# happening this week button
if thisWeeksEventsCheck(baseDir, nickname, domain):
tlStr += \
'<a href="' + usersPath + \
' <a href="' + usersPath + \
'/calendar"><button class="buttonevent">' + \
translate['Happening This Week'] + '</button></a>\n'
tlStr += '</center>\n'
tlStr += ' </center>\n'
else:
# happening this week button
if thisWeeksEventsCheck(baseDir, nickname, domain):
tlStr += \
'<center>\n<a href="' + usersPath + \
' <center>\n' + \
' <a href="' + usersPath + \
'/calendar"><button class="buttonevent">' + \
translate['Happening This Week'] + '</button></a>\n' + \
'</center>\n'
' </center>\n'
# benchmark 8
timeDiff = int((time.time() - timelineStartTime) * 1000)