fix warning message
/usr/lib/syncplay/syncplay/ui/GuiConfiguration.py:323: SyntaxWarning: "is not" with a literal. Did you mean "!="?
This commit is contained in:
parent
23ca271ff9
commit
5ed12c0cd9
@ -320,7 +320,7 @@ class ConfigDialog(QtWidgets.QDialog):
|
|||||||
try:
|
try:
|
||||||
self.lastCheckedForUpdates = settings.value("lastCheckedQt", None)
|
self.lastCheckedForUpdates = settings.value("lastCheckedQt", None)
|
||||||
if self.lastCheckedForUpdates:
|
if self.lastCheckedForUpdates:
|
||||||
if self.config["lastCheckedForUpdates"] is not None and self.config["lastCheckedForUpdates"] != "":
|
if self.config["lastCheckedForUpdates"] != None and self.config["lastCheckedForUpdates"] != "":
|
||||||
if self.lastCheckedForUpdates.toPython() > datetime.strptime(self.config["lastCheckedForUpdates"], "%Y-%m-%d %H:%M:%S.%f"):
|
if self.lastCheckedForUpdates.toPython() > datetime.strptime(self.config["lastCheckedForUpdates"], "%Y-%m-%d %H:%M:%S.%f"):
|
||||||
self.config["lastCheckedForUpdates"] = self.lastCheckedForUpdates.toString("yyyy-MM-d HH:mm:ss.z")
|
self.config["lastCheckedForUpdates"] = self.lastCheckedForUpdates.toString("yyyy-MM-d HH:mm:ss.z")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user