Browse Source

Remove unneeded import

Foppe Hemminga 6 năm trước cách đây
mục cha
commit
12625fd39a
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      data.py

+ 0 - 2
data.py

@@ -6,7 +6,6 @@ import os
 import sys
 from pprint import pprint
 from datetime import datetime
-from urllib.parse import urlencode
 # from urllib.request import Request, urlopen
 import requests
 
@@ -22,7 +21,6 @@ def broadcast(name, timestamp, price, quantity, this_drop):
     string = "{}: {} dropped {} shares at ${:.2f} for a grand total of ${:.1f}B".format(
         time, name, quantity, price, this_drop_decimal)
     json = {'content': string}
-    print(urlencode(json).encode())
     response = requests.post(url, json=json)
     if response.status_code in [200, 204]:
         print("Webhook executed")