Decorators with arguments?

2020-05-14 Thread Christopher de Vidal
ad_time): on_snapshot('cpu_temp', col_snapshot, changes, read_time) cpu_temp_col_ref = db.collection('cpu_temp') cpu_temp_col_watch = cpu_temp_col_ref.on_snapshot(cpu_temp_on_snapshot) # End repeated code section # Start repeated code section door_status_col_watch.unsubscri

Re: Decorators with arguments?

2020-05-25 Thread Christopher de Vidal
pters = list() for collection in ['door_status', 'cpu_temp']: adapters.append(bridge(collection)) while True: sleep(1) for adapter in adapters: adapter.unsubscribe() Christopher de Vidal Would you consider yourself a good person? Have you ever taken the 'Good