summaryrefslogtreecommitdiff
path: root/fhost.py
diff options
context:
space:
mode:
Diffstat (limited to 'fhost.py')
-rwxr-xr-xfhost.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fhost.py b/fhost.py
index c1fd7cc..a59e22e 100755
--- a/fhost.py
+++ b/fhost.py
@@ -295,7 +295,7 @@ class File(db.Model):
f.size = len(data)
if not f.nsfw_score and app.config["NSFW_DETECT"]:
- f.nsfw_score = nsfw.detect(p)
+ f.nsfw_score = nsfw.detect(str(p))
db.session.add(f)
db.session.commit()