Skip to content

Commit

Permalink
removed print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
divyav-aot committed Oct 4, 2023
1 parent 5cb4570 commit 74a7613
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions api/reviewer_api/models/Annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ def __chunksaveannotations(
) -> DefaultMethodResult:
successannots = []
failedannots = []
print("<<<<<<<<< __chunksaveannotations >>>>>>>>>>")
try:
for annot in annots:
resp = cls.__saveannotation(annot, redactionlayerid, userinfo)
Expand All @@ -281,7 +280,6 @@ def __bulksaveannotations(
cls, annots, redactionlayerid, userinfo, size=100
) -> DefaultMethodResult:
idxannots = []
print("<<<<<<<<<<< __bulksaveannotations >>>>>>>>>>>>")
try:
wkannots = split(annots, size)
for wkannot in wkannots:
Expand All @@ -299,7 +297,6 @@ def __bulksaveannotations(
@classmethod
def __saveannotation(cls, annot, redactionlayerid, userinfo) -> DefaultMethodResult:
annotkey = cls.__getannotationkey(annot["name"])
print("annotkey == ", annotkey)
if annotkey is None:
return cls.__newannotation(annot, redactionlayerid, userinfo)
else:
Expand All @@ -310,7 +307,6 @@ def __saveannotation(cls, annot, redactionlayerid, userinfo) -> DefaultMethodRes
@classmethod
def __newannotation(cls, annot, redactionlayerid, userinfo) -> DefaultMethodResult:
try:
print("<<<<<<<< __newannotation >>>>>>>>>")
values = [
{
"annotationname": annot["name"],
Expand Down Expand Up @@ -399,7 +395,6 @@ def __updateannotation(
cls, annot, redactionlayerid, userinfo, id=None, version=None
) -> DefaultMethodResult:
try:
print("<<<<<<< __updateannotation >>>>>>>>")
if id is None or version is None:
return DefaultMethodResult(
True, "Unable to Save Annotation", annot["name"]
Expand Down

0 comments on commit 74a7613

Please sign in to comment.