Skip to content

Commit 2aaeb9a

Browse files
committed
lint: rename internal variable
mypy detected this as a type mismatch, as the internal variable name was shadowing the externally-supplied one, and changing the type. Signed-off-by: Mike Fiedler <miketheman@gmail.com>
1 parent 3323f3d commit 2aaeb9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

warehouse/legacy/api/xmlrpc/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,10 +547,10 @@ def changelog_since_serial(request, serial: int):
547547

548548
@xmlrpc_method(method="changelog")
549549
def changelog(request, since: int, with_ids: bool = False):
550-
since = datetime.datetime.utcfromtimestamp(since)
550+
since_dt = datetime.datetime.utcfromtimestamp(since)
551551
entries = (
552552
request.db.query(JournalEntry)
553-
.filter(JournalEntry.submitted_date > since)
553+
.filter(JournalEntry.submitted_date > since_dt)
554554
.order_by(JournalEntry.id)
555555
.limit(50000)
556556
)

0 commit comments

Comments
 (0)