mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-04-09 04:18:17 +02:00
fix missing await
This commit is contained in:
parent
b9dc440d99
commit
fcf796b800
@ -96,7 +96,7 @@ class DicoverContentLatestLongForm(DVMTaskInterface):
|
||||
async def process(self, request_form):
|
||||
# if the dvm supports individual results, recalculate it every time for the request
|
||||
if self.personalized:
|
||||
return self.calculate_result(request_form)
|
||||
return await self.calculate_result(request_form)
|
||||
# else return the result that gets updated once every scheduled update. In this case on database update.
|
||||
else:
|
||||
return self.result
|
||||
|
@ -98,7 +98,7 @@ class DicoverContentCurrentlyPopular(DVMTaskInterface):
|
||||
async def process(self, request_form):
|
||||
# if the dvm supports individual results, recalculate it every time for the request
|
||||
if self.personalized:
|
||||
return self.calculate_result(request_form)
|
||||
return await self.calculate_result(request_form)
|
||||
# else return the result that gets updated once every scheduled update. In this case on database update.
|
||||
else:
|
||||
return self.result
|
||||
|
@ -98,7 +98,7 @@ class DicoverContentCurrentlyPopularZaps(DVMTaskInterface):
|
||||
async def process(self, request_form):
|
||||
# if the dvm supports individual results, recalculate it every time for the request
|
||||
if self.personalized:
|
||||
return self.calculate_result(request_form)
|
||||
return await self.calculate_result(request_form)
|
||||
# else return the result that gets updated once every scheduled update. In this case on database update.
|
||||
else:
|
||||
return self.result
|
||||
|
@ -42,7 +42,7 @@ def get_event_by_id(event_id: str, client: Client, config=None) -> Event | None:
|
||||
return None
|
||||
|
||||
async def get_events_async(client, filter, timeout):
|
||||
events = client.get_events_of([filter], timedelta(seconds=timeout))
|
||||
events = await client.get_events_of([filter], timedelta(seconds=timeout))
|
||||
return events
|
||||
|
||||
|
||||
|
2
setup.py
2
setup.py
@ -1,6 +1,6 @@
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
VERSION = '0.6.6'
|
||||
VERSION = '0.6.7'
|
||||
DESCRIPTION = 'A framework to build and run Nostr NIP90 Data Vending Machines'
|
||||
LONG_DESCRIPTION = ('A framework to build and run Nostr NIP90 Data Vending Machines. See the github repository for more information')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user