Format app update command properly as fstring not mixture

This commit is contained in:
Zedifus 2024-02-14 22:59:31 +00:00
parent 6346d23010
commit cec44103c6

View File

@ -34,11 +34,10 @@ class SteamCMDcommand:
:return: Index command was added at :return: Index command was added at
""" """
self._commands.append( self._commands.append(
f"+app_update " f"+app_update {app_id}"
f"{app_id}" f"{' validate' if validate else ''}"
f'{" validate" if validate else ""}' f"{' -beta ' + beta if beta else ''}"
f'{" -beta {}".format(beta) if beta else ""}' f"{' -betapassword ' + beta_pass if beta_pass else ''}"
f'{" -betapassword {}".format(beta_pass) if beta_pass else ""}'
) )
return len(self._commands) - 1 return len(self._commands) - 1