Skip to content

Commit 6ee840a

Browse files
committed
Unpin most python dependencies
1 parent d24eb82 commit 6ee840a

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

requirements.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
cython
22
annoy==1.16.3
33
Flask
4-
gunicorn[gevent]==20.0.4
5-
ImageHash==4.3.1
6-
piexif==1.1.3
4+
gunicorn[gevent]
5+
ImageHash
6+
piexif
77
Pillow
88
PyYAML
99
Werkzeug
@@ -12,10 +12,10 @@ tldextract
1212
opencv-python
1313
opencv-contrib-python
1414
joblib
15-
requests-cache==0.5.2
16-
redis==3.5.2
15+
requests-cache
16+
redis
1717
youtube_dl
1818
bsddb3
19-
cachetools==4.2.2
20-
MarkupSafe==2.0.1
19+
cachetools
20+
MarkupSafe
2121
python-dateutil

src/web_server.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ def entity_too_large(e):
110110

111111
@app.route('/upload', methods=['POST'])
112112
def upload():
113-
# remove old requests from cache
114-
cached_req_session.cache.remove_old_entries(datetime.now() - req_expire_after)
115-
116113
f = request.files['file']
117114
filename = '{:016x}'.format(random.randint(0, 1<<128))
118115
path = os.path.join(app.config['UPLOAD_FOLDER'], filename)
@@ -129,9 +126,6 @@ def upload():
129126

130127
@app.route('/')
131128
def root():
132-
# remove old requests from cache
133-
cached_req_session.cache.remove_old_entries(datetime.now() - req_expire_after)
134-
135129
return render_page('sourcecatcher.html')
136130

137131

0 commit comments

Comments
 (0)