Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Mar 17, 2024
1 parent 4770fa9 commit ad7591c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,10 @@ def read_analytics_file(package_status_id, package_id, link, session):
is_new_package = channel_json_file.startswith('messages/c')
read_time_start = time.time()
ch_msgs_file_name = f'messages/{"c" if is_new_package else ""}{channel_id}/messages.json'
print('checking...')
if ch_msgs_file_name not in namelist:
print('skipping...')
print(ch_msgs_file_name)
continue
message_content = zip.open(f'messages/{"c" if is_new_package else ""}{channel_id}/messages.json')
read_time_diff = time.time() - read_time_start
Expand Down

0 comments on commit ad7591c

Please sign in to comment.