Work on event files and related

This commit is contained in:
Scott Idem
2022-08-19 17:46:19 -04:00
parent 4048bd3a51
commit f3f53e73b4
9 changed files with 282 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
import datetime
import datetime, time
from fastapi import APIRouter, Body, Depends, Header, HTTPException, Query, Response, status
from pydantic import BaseModel, EmailStr, Field
from typing import Dict, List, Optional, Set, Union
@@ -55,6 +55,8 @@ async def patch_event_presenter_obj(
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
time.sleep(2.5)
obj_type = 'event_presenter'
obj_data_dict = obj.dict(by_alias=False, exclude_unset=True)
obj_data_dict['id'] = redis_lookup_id_random(record_id_random=obj_id, table_name=obj_type)