Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How do I get the last element?
Post: RE: How do I get the last element?

I'd somehow missed Gribouillis' reply, and that got me where I needed to go, with one minor addition: [x['time'] for x in value] returns the list of "time", so to get the last item in that list: >...
DaytonJones General Coding Help 9 4,257 Jun-10-2019, 05:48 PM
    Thread: How do I get the last element?
Post: RE: How do I get the last element?

(Jun-07-2019, 04:49 PM)heiner55 Wrote: I don't have InfluxDbDClient, so I cannot help. Couldn't you just use the ResultSet I have, and try to parse it out?
DaytonJones General Coding Help 9 4,257 Jun-10-2019, 02:49 PM
    Thread: How do I get the last element?
Post: RE: How do I get the last element?

(Jun-07-2019, 03:00 PM)heiner55 Wrote: Which library or database delivers "ResultSet"? In this case, ResultSet is returned from InfluxDBClient
DaytonJones General Coding Help 9 4,257 Jun-07-2019, 04:30 PM
    Thread: How do I get the last element?
Post: How do I get the last element?

Newbie question.... I have a ResultSet that looks like: ResultSet({'('system', {'host': 'my.host.net'})': [{'time': '2019-05-30T00:00:00Z', 'deltaUptime': 53175}, {'time': '2019-05-31T00:00:00Z', '...
DaytonJones General Coding Help 9 4,257 Jun-07-2019, 02:33 PM
    Thread: Newbie seeking help with DNS query
Post: Newbie seeking help with DNS query

I'm fairly new to python, so I'm currently at a loss as to how to proceed... I need to write a script that will perform a DNS query (simple, not the issue) on a hostname and then compare the results ...
DaytonJones General Coding Help 0 2,216 Sep-21-2018, 06:29 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020