[tor-bugs] #6953 [pyonionoo]: (relays|bridges)_published in Pyonionoo should not depend on relays/bridges contained in result
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Wed Sep 26 11:50:08 UTC 2012
#6953: (relays|bridges)_published in Pyonionoo should not depend on relays/bridges
contained in result
-----------------------+----------------------------------------------------
Reporter: karsten | Owner: gsathya
Type: defect | Status: needs_information
Priority: normal | Milestone:
Component: pyonionoo | Version:
Keywords: | Parent:
Points: | Actualpoints:
-----------------------+----------------------------------------------------
Comment(by karsten):
Replying to [comment:4 gsathya]:
> Replying to [comment:3 karsten]:
> > Replying to [comment:2 gsathya]:
> > > Does the summary document contain this information? Otherwise the
only way I can think of currently to get this info is the parse the
consensus document.
> >
> > It does. The last timestamp of all "r" lines is the relays_published
timestamp and the last timestamp of all "b" lines is bridges_published.
No need to parse any other documents for that.
>
> Aha! I'm wondering how expensive it would be to do another separate db
query for this, or just figure this out while inserting data into the db?
I'd say just make another database query for this. Doing anything past
the database is subject to breaking sooner or later.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6953#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list