Commit Graph

5 Commits

Author SHA1 Message Date
Mike Fährmann
55977e2be3 more f-string usage (#7671) 2025-08-03 11:36:28 +02:00
Mike Fährmann
9dbe33b6de replace old %-formatted and .format(…) strings with f-strings (#7671)
mostly using flynt
https://github.com/ikamensh/flynt
2025-06-29 17:50:19 +02:00
Mike Fährmann
d92bc06f90 [twitter:ctid] reduce chance of generating the same ID
Querying the same endpoint more than once per second could result in a
"404 Not Found" error if the same transaction ID is generated by
'random.randrange(256)' yielding the same result.

This commit tries to significantly reduce the chance of this happening
by incorporating the fractional part of the current timestamp into the
random number, making it only possible to generate the same ID for
one-sixteenth of a second.
2025-05-10 21:27:22 +02:00
Mike Fährmann
771317b36c [twitter:ctid] cache client transaction keys (#7382)
and 'ondemand.s.…a.js' responses
2025-05-03 12:50:00 +02:00
Mike Fährmann
c9123513af [twitter:ctid] integrate 'transaction-id' code (#7382) 2025-05-02 12:08:11 +02:00