Skip to content

Commit

Permalink
Add caching to checkhash function
Browse files Browse the repository at this point in the history
  • Loading branch information
ikagod authored Apr 27, 2024
1 parent 6df59f2 commit 2afae18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ikabot/function/constructionList.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from decimal import *

import requests
from functools import cache

from ikabot.config import *
from ikabot.helpers.botComm import *
Expand Down Expand Up @@ -557,7 +558,7 @@ def getBuildingToExpand(session, cityId):

return building


@cache
def checkhash(url):
m = hashlib.md5()
r = requests.get(url)
Expand Down

0 comments on commit 2afae18

Please sign in to comment.