mirror of
https://git.0x0.st/mia/0x0.git
synced 2024-11-22 08:57:11 +01:00
Fix NSFW detection
This commit is contained in:
parent
57c4b6853f
commit
f76dbef82f
1 changed files with 1 additions and 1 deletions
2
fhost.py
2
fhost.py
|
@ -295,7 +295,7 @@ class File(db.Model):
|
||||||
f.size = len(data)
|
f.size = len(data)
|
||||||
|
|
||||||
if not f.nsfw_score and app.config["NSFW_DETECT"]:
|
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.add(f)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
Loading…
Reference in a new issue