mirror of
https://github.com/house-of-vanity/gaspar.git
synced 2025-07-07 02:34:06 +00:00
Improve styling and logging.
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
def format_topic(tor_id, topic_title, size, info_hash, reg_time, pre=None):
|
def format_topic(tor_id, topic_title, size, info_hash, reg_time, pre=''):
|
||||||
def sizeof_fmt(num, suffix='B'):
|
def sizeof_fmt(num, suffix='B'):
|
||||||
num = int(num)
|
num = int(num)
|
||||||
for unit in ['','Ki','Mi','Gi','Ti','Pi','Ei','Zi']:
|
for unit in ['','Ki','Mi','Gi','Ti','Pi','Ei','Zi']:
|
||||||
|
Reference in New Issue
Block a user