Spaces:
Runtime error
Runtime error
fix timezone
Browse files
app.py
CHANGED
|
@@ -9,9 +9,8 @@ import streamlit as st
|
|
| 9 |
import seaborn as sns
|
| 10 |
from streamlit_folium import st_folium
|
| 11 |
import matplotlib.pyplot as plt
|
| 12 |
-
from datetime import datetime
|
| 13 |
import gspread
|
| 14 |
-
import json
|
| 15 |
from oauth2client.service_account import ServiceAccountCredentials
|
| 16 |
from utils import *
|
| 17 |
|
|
@@ -313,5 +312,5 @@ with st.form("inputs"):
|
|
| 313 |
client = gspread.authorize(credentials)
|
| 314 |
|
| 315 |
sheet = client.open("PropertyPricePredictor_Sheet").sheet1
|
| 316 |
-
sheet.append_row([datetime.now().strftime('%Y-%m-%d %H:%M:%S'), int(input_postal),input_storey,input_age_asof_transaction,input_floor_area_sqft,input_propertyType])
|
| 317 |
st.markdown(f'_Number of searches till date: {len(sheet.get_values("A:A"))-1}_')
|
|
|
|
| 9 |
import seaborn as sns
|
| 10 |
from streamlit_folium import st_folium
|
| 11 |
import matplotlib.pyplot as plt
|
| 12 |
+
from datetime import datetime, timedelta
|
| 13 |
import gspread
|
|
|
|
| 14 |
from oauth2client.service_account import ServiceAccountCredentials
|
| 15 |
from utils import *
|
| 16 |
|
|
|
|
| 312 |
client = gspread.authorize(credentials)
|
| 313 |
|
| 314 |
sheet = client.open("PropertyPricePredictor_Sheet").sheet1
|
| 315 |
+
sheet.append_row([(datetime.now() + timedelta(hours=8)).strftime('%Y-%m-%d %H:%M:%S'), int(input_postal),input_storey,input_age_asof_transaction,input_floor_area_sqft,input_propertyType])
|
| 316 |
st.markdown(f'_Number of searches till date: {len(sheet.get_values("A:A"))-1}_')
|