From b3061a0d797f3f1e7b4822f178de2d8ff6230c99 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 28 Apr 2024 01:05:39 +0100 Subject: [PATCH] Handle event price in roisin_dubh_listings.py --- roisin_dubh_listings.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/roisin_dubh_listings.py b/roisin_dubh_listings.py index 7ec8813..9af022d 100755 --- a/roisin_dubh_listings.py +++ b/roisin_dubh_listings.py @@ -22,6 +22,7 @@ for listing in listings: print(' ') print('Ticket Allocation: ' + listing['ticket_allocation'] + '
') print('Tickets remaining?: ' + str(listing['ticket_remaining'] == '1') + '
') @@ -35,16 +36,6 @@ for listing in listings: if listing['external_ticket_url']: print('External Ticket URL: ' + listing['external_ticket_url'] + '') - # unparsed json object: - # "prices": { - # "regular": 10, - # "student": 0, - # "vip": 0, - # "ticket_limit": 10, - # "ticket_limit_per_transaction": 1, - # "discount": [] - # }, - print(']]>
') print('' + datetime.strptime(listing['event_date_time'], '%Y-%m-%dT%H:%M:%S').strftime('%a, %d %b %Y %H:%M:%S %z') + '') print('')