Foppe Hemminga преди 6 години
родител
ревизия
f94ede0d9f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      view.py

+ 1 - 1
view.py

@@ -12,7 +12,7 @@ def create_message(name, timestamp, price, quantity):
     :param quantity:
     :return:
     """
-    this_time = datetime.utcfromtimestamp(timestamp).strftime('%Y-%m-%d %H:%M:%S')
+    this_time = datetime.utcfromtimestamp(timestamp).strftime('%Y-%m-%d %H:%M')
     this_drop_decimal = quantity * price / 1e9
     this_message = "{}: {} dropped {} shares at ${:.2f} for a grand total of ${:.1f}B".format(
         this_time, name, quantity, price, this_drop_decimal)