mirror of
https://git.0x0.st/mia/0x0.git
synced 2025-04-19 06:43:03 +02:00
Remove vestigial touch()
This commit is contained in:
parent
d14713d077
commit
39d24e56c3
1 changed files with 0 additions and 2 deletions
2
fhost.py
2
fhost.py
|
@ -246,8 +246,6 @@ class File(db.Model):
|
||||||
if not p.is_file():
|
if not p.is_file():
|
||||||
with open(p, "wb") as of:
|
with open(p, "wb") as of:
|
||||||
of.write(data)
|
of.write(data)
|
||||||
else:
|
|
||||||
p.touch()
|
|
||||||
|
|
||||||
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(p)
|
||||||
|
|
Loading…
Add table
Reference in a new issue