fix missing await

This commit is contained in:
Believethehype 2024-06-13 10:58:15 +02:00
parent b9dc440d99
commit fcf796b800
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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')