Skip to content

Commit

Permalink
comment out untested code
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenBrinckmann committed Dec 29, 2024
1 parent 30c64b2 commit e068ddc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pasta_eln/elabFTWapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,13 @@ def createEntry(self, entryType:str, content:str='') -> bool:
Returns:
bool: success of operation
"""
response = requests.post(self.url+entryType, **self.param)
print("**TODO", content)
if response.status_code == 201:
return True
print(f"**ERROR occurred in create of url {entryType}: {response.json}")
return False
raise NotImplementedError('Not implemented and tested')
# response = requests.post(self.url+entryType, **self.param)
# print("**TODO", content)
# if response.status_code == 201:
# return True
# print(f"**ERROR occurred in create of url {entryType}: {response.json}")
# return False


def readEntry(self, entryType:str, identifier:int=-1) -> list[dict[str,Any]]:
Expand Down

0 comments on commit e068ddc

Please sign in to comment.