Skip to content
Snippets Groups Projects
Commit 8fd91aad authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #8887: convert qpid datetime to python datetime

parent 62a123a5
No related branches found
No related tags found
No related merge requests found
...@@ -107,8 +107,13 @@ class RADBHandler(MessageHandlerInterface): ...@@ -107,8 +107,13 @@ class RADBHandler(MessageHandlerInterface):
def _insertResourceClaims(self, **kwargs): def _insertResourceClaims(self, **kwargs):
logger.info('InsertResourceClaims: %s' % dict({k:v for k,v in kwargs.items() if v != None})) logger.info('InsertResourceClaims: %s' % dict({k:v for k,v in kwargs.items() if v != None}))
claims = kwargs['claims']
for claim in claims:
claim['starttime'] = claim['starttime'].datetime()
claim['endtime'] = claim['endtime'].datetime()
ids = self.radb.insertResourceClaims(kwargs['task_id'], ids = self.radb.insertResourceClaims(kwargs['task_id'],
kwargs['claims'], claims,
kwargs['session_id'], kwargs['session_id'],
kwargs['username'], kwargs['username'],
kwargs['user_id']) kwargs['user_id'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment