Does anyone know if there's a way in which you can return the State number of a versioned geodatabase via Python?
We have a script that compresses the geodatabase, but sometimes we have to manually compress it after it has run to achieve state 0. We'd like for the script to create Versions after the compress, but only if it's at State 0. So, if we can get the State number we could check for State 0 and create them if it is at State 0, and not create them if it's not.
Any help would be appreciated, thanks!
We have a script that compresses the geodatabase, but sometimes we have to manually compress it after it has run to achieve state 0. We'd like for the script to create Versions after the compress, but only if it's at State 0. So, if we can get the State number we could check for State 0 and create them if it is at State 0, and not create them if it's not.
Any help would be appreciated, thanks!