mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-26 06:47:32 -05:00
Format stuff
This commit is contained in:
parent
30f26b2f6a
commit
8109b7ada6
@ -40,7 +40,7 @@ export const insertStaff = record(
|
||||
|
||||
const rval = seed.map((x, i) => ({
|
||||
showPk,
|
||||
staffPk: ret.find(y => y.slug === x.staff.slug)!.pk,
|
||||
staffPk: ret.find((y) => y.slug === x.staff.slug)!.pk,
|
||||
kind: x.kind,
|
||||
order: i,
|
||||
character: {
|
||||
|
||||
@ -26,7 +26,9 @@ async def lifespan(_):
|
||||
):
|
||||
# there's no way someone else used the same id, right?
|
||||
is_master = await db.fetchval("select pg_try_advisory_lock(198347)")
|
||||
is_http = not is_master and await db.fetchval("select pg_try_advisory_lock(645633)")
|
||||
is_http = not is_master and await db.fetchval(
|
||||
"select pg_try_advisory_lock(645633)"
|
||||
)
|
||||
if is_http:
|
||||
yield
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user