Skip to content

Commit

Permalink
Move event_timestamp into ChangeEventsAPISession
Browse files Browse the repository at this point in the history
  • Loading branch information
hunner committed Apr 22, 2021
1 parent 4ae7cd3 commit 86e8074
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pdpyras.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,10 +629,6 @@ def user_agent(self):
sys.version_info.minor
)

@property
def event_timestamp(self):
return datetime.now(timezone.utc).isoformat()

class EventsAPISession(PDSession):

"""
Expand Down Expand Up @@ -811,6 +807,10 @@ class ChangeEventsAPISession(PDSession):
def auth_header(self):
return {}

@property
def event_timestamp(self):
return datetime.now(timezone.utc).isoformat()

def prepare_headers(self, method):
"""Add user agent and content type headers for Change Events API requests."""
headers = deepcopy(self.headers)
Expand Down

0 comments on commit 86e8074

Please sign in to comment.