Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit a0f8256

Browse files
committed
Override files in cache
1 parent cd643c7 commit a0f8256

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

market/network.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,8 +1078,7 @@ def parse_response(response):
10781078
@staticmethod
10791079
def cache(file_to_save, filename):
10801080
"""
1081-
Saves the file to a cache folder if it doesn't already exist.
1081+
Saves the file to a cache folder override previous versions if any.
10821082
"""
1083-
if not os.path.isfile(DATA_FOLDER + "cache/" + filename):
1084-
with open(DATA_FOLDER + "cache/" + filename, 'wb') as outfile:
1085-
outfile.write(file_to_save)
1083+
with open(DATA_FOLDER + "cache/" + filename, 'wb') as outfile:
1084+
outfile.write(file_to_save)

0 commit comments

Comments
 (0)