mirror of
https://github.com/gentoo-root/telegram-tracker
synced 2025-08-20 13:23:52 -07:00
track: Clean cruft and add spaces
This commit is contained in:
parent
0110871b37
commit
78ba52d07a
1 changed files with 10 additions and 12 deletions
|
@ -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'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue