Преглед на файлове

Add '@' to stock name so it triggers @discord notifications

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

+ 1 - 1
view.py

@@ -25,7 +25,7 @@ def create_message(name, timestamp, price, quantity, current_quantity=0, forecas
     npc = ''
     if npc_drop:
         npc = '*NPC* '
-    this_message = "{}: {}{} dropped {:,} shares at ${:,.2f} for a grand total of ${:,.1f}B [{}]".format(
+    this_message = "{}: {}@{} dropped {:,} shares at ${:,.2f} for a grand total of ${:,.1f}B [{}]".format(
         this_time, npc, name, quantity, price, this_drop_decimal, current_quantity)
     if forecast_previous and forecast_latest:
         this_message = "{}: @{} changed from {} to {} with {:,} shares available at ${:,.2f}".format(