Skip to content

Commit

Permalink
format modified
Browse files Browse the repository at this point in the history
  • Loading branch information
HyejiYu committed Sep 23, 2024
1 parent 34f05c6 commit 8855fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion messagequeue/consumer/homeplus_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def callback(ch, method, properties, body):
# else:
# print(f"Directory ./homeplus/{category_name}/ already exists")
with open(f'/mnt/patturning/HomePlus/{category_name}/{product_id}.txt', 'a') as f:
f.write(f"{current_date},{now_hour},{price}\n")
f.write(f"{current_date},{now_hour}:00,{price}\n")
if cnt % 10000 == 0:
end = time.time()
time_spent = datetime.timedelta(seconds=(end-start))
Expand Down

0 comments on commit 8855fdb

Please sign in to comment.