Skip to content

Commit

Permalink
Fix #670
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Nov 8, 2023
1 parent d175832 commit e0d9dd0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/auth.nim
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ proc hasExpired(account: GuestAccount): bool =
let
created = snowflakeToEpoch(account.id)
now = epochTime().int64
daysOld = int(now - created) div (24 * 60 * 60)
daysOld = int(now - created) div dayInSeconds
return daysOld > 30

proc getAccountPoolHealth*(): JsonNode =
let now = epochTime().int

var
totalReqs = 0
limited: PackedSet[BiggestInt]
limited: PackedSet[int64]
reqsPerApi: Table[string, int]
oldest = now.int64
newest = 0'i64
Expand Down
2 changes: 1 addition & 1 deletion src/sass/profile/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
}

.profile-card-tabs-name {
@include breakable;
flex-shrink: 100;
}

.profile-card-avatar {
Expand Down
4 changes: 2 additions & 2 deletions src/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type
limitedAt*: int

GuestAccount* = ref object
id*: BiggestInt
id*: int64
oauthToken*: string
oauthSecret*: string
pending*: int
Expand Down Expand Up @@ -164,7 +164,7 @@ type
newsletterPublication = "newsletter_publication"
hidden
unknown

Card* = object
kind*: CardKind
url*: string
Expand Down

0 comments on commit e0d9dd0

Please sign in to comment.