From ce3bfcabc011165635db5ed02286019dacd67ff5 Mon Sep 17 00:00:00 2001 From: Jonathan Gangi Date: Wed, 6 Nov 2024 14:20:06 -0300 Subject: [PATCH] Fix awful condition Found while looking up in the code to investigate another issue. Better fix this horrible thing first. --- src/pubtools/_marketplacesvm/tasks/push/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pubtools/_marketplacesvm/tasks/push/command.py b/src/pubtools/_marketplacesvm/tasks/push/command.py index e31ccf5..d0a898d 100644 --- a/src/pubtools/_marketplacesvm/tasks/push/command.py +++ b/src/pubtools/_marketplacesvm/tasks/push/command.py @@ -281,7 +281,7 @@ async def push_function(mapped_item, marketplace, starmap_query) -> Dict[str, An pi, pre_push=False, ) - elif pi.state != State.UPLOADFAILED and not not self.args.pre_push: + elif pi.state != State.UPLOADFAILED and self.args.pre_push: # Set the state as PUSHED when the operation is nochannel pi = evolve(pi, state=State.PUSHED)