track: Clean cruft and add spaces

This commit is contained in:
HaoZeke 2019-03-22 21:10:16 +05:30
commit 78ba52d07a
No known key found for this signature in database
GPG key ID: 9CCCE36402CB49A6

View file

@ -45,15 +45,13 @@ contact_id = argv[1]
client = TelegramClient('tracker', API_ID, API_HASH) client = TelegramClient('tracker', API_ID, API_HASH)
client.start() client.start()
# File IO
dataFile = open('shuTimes.txt', 'a+')
online = None online = None
last_offline = None last_offline = None
printName = True printName = True
while True: while True:
try: try:
# File IO
dataFile = open('trackerLogs.txt', 'a+', encoding = 'utf-8') dataFile = open('trackerLogs.txt', 'a+', encoding = 'utf-8')
if contact_id in ['me', 'self']: if contact_id in ['me', 'self']:
# Workaround for the regression in Telethon that breaks get_entity('me'): # Workaround for the regression in Telethon that breaks get_entity('me'):