Skip to content

Commit

Permalink
Fix misplaced ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
spleiner committed Aug 27, 2024
1 parent e3ab900 commit 0add072
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slussen.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
)


@st.cache_data
def get_departures(ttl=60):
@st.cache_data(ttl=60)
def get_departures():
departures = []
for site in sites:
url = f"https://transport.integration.sl.se/v1/sites/{site}/departures?transport=BUS"
Expand Down Expand Up @@ -101,8 +101,8 @@ def get_departures(ttl=60):
return departures


@st.cache_data
def get_deviations(ttl=60):
@st.cache_data(ttl=60)
def get_deviations():
deviations = []
sitestring = ""
for site in sites:
Expand Down

0 comments on commit 0add072

Please sign in to comment.