Skip to content

Commit 76629fc

Browse files
authored
[timestampTrade] Fix indent (#545)
1 parent aaa38a3 commit 76629fc

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

plugins/timestampTrade/timestampTrade.py

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -693,27 +693,32 @@ def submitScene(query):
693693
)
694694
for s in scenes:
695695
log.debug("submitting scene: " + str(s))
696+
696697
if settings["submitFunscriptHash"]:
697698
log.debug(s)
698699
s["funscriptHashes"] = []
699-
with db_migrations() as conn:
700-
cur = conn.cursor()
701-
res = cur.execute(
702-
"select id,filename,metadata,scene_id,md5 from script_index where scene_id=?",
703-
(s["id"],),
704-
)
705-
for row in res.fetchall():
706-
s["funscriptHashes"].append(
707-
{
708-
"filename": str(Path(row[1]).name),
709-
"metadata": json.loads(row[2]),
710-
"md5": row[4],
711-
}
712-
)
700+
701+
with db_migrations() as conn:
702+
cur = conn.cursor()
703+
res = cur.execute(
704+
"select id, filename, metadata, scene_id, md5 from script_index where scene_id=?",
705+
(s["id"],),
706+
)
707+
708+
for row in res.fetchall():
709+
s["funscriptHashes"].append(
710+
{
711+
"filename": str(Path(row[1]).name),
712+
"metadata": json.loads(row[2]),
713+
"md5": row[4],
714+
}
715+
)
716+
713717
s.pop("id")
714718
log.debug(s)
715719
request_s.post("https://timestamp.trade/submit-stash", json=s)
716-
i = i + 1
720+
721+
i += 1
717722
log.progress((i / count))
718723
time.sleep(0.5)
719724

plugins/timestampTrade/timestampTrade.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Timestamp Trade
22
description: Sync Markers with timestamp.trade, a new database for sharing markers.
3-
version: 0.8.1
3+
version: 0.8.2
44
url: https://github.com/stashapp/CommunityScripts/
55
exec:
66
- python

0 commit comments

Comments
 (0)