James McCool commited on
Commit
4c7d6a3
·
1 Parent(s): 68a8fab

fixed timestamp

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -13,6 +13,7 @@ import plotly.express as px
13
  import pymongo
14
  import random
15
  import gc
 
16
 
17
  @st.cache_resource
18
  def init_conn():
@@ -116,8 +117,8 @@ def init_baselines():
116
  ['Jaren Jackson Jr.', 'Nicolas Claxton', 'Jabari Smith Jr.', 'Luguentz Dort', 'Moritz Wagner', 'Kyle Kuzma Jr.',
117
  'Trey Murphy III', 'Cam Thomas'], inplace=True)
118
 
119
- worksheet = sh.worksheet('Timestamp')
120
- timestamp = worksheet.acell('A1').value
121
 
122
  collection = db["Prop_Trends"]
123
  cursor = collection.find()
 
13
  import pymongo
14
  import random
15
  import gc
16
+ from datetime import datetime
17
 
18
  @st.cache_resource
19
  def init_conn():
 
117
  ['Jaren Jackson Jr.', 'Nicolas Claxton', 'Jabari Smith Jr.', 'Luguentz Dort', 'Moritz Wagner', 'Kyle Kuzma Jr.',
118
  'Trey Murphy III', 'Cam Thomas'], inplace=True)
119
 
120
+
121
+ timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
122
 
123
  collection = db["Prop_Trends"]
124
  cursor = collection.find()