int(ResourceScripts.game_globals.date) % variables.shop_restock_days == 0
seems to have changed to
int(ResourceScripts.game_globals.date) % variables.shop_restock_days == 1
with the slight problem, that variables.shop_restock_days is 1, making it impossible for the modulo to ever be 1 (an integer % 1 is always 0)
probably was meant for less frequent shop updates? though even then 0 works basically the same, and survives any possible mod wanting shop_restock_days at 1
(I have a fixed version of the recent random portaits mod installed, but that doesn't seem to go anywhere near the those definitions, but maybe I am mistaken)