

def get_history_timestamp(self, history_entry, action):
    timestamp = None
    filepath = history_entry['filename']
    if (('timestamp' in history_entry) and (self.TIMESTAMP_MODE == 'history_access')):
        timestamp = history_entry['timestamp']
    elif (filepath and os.path.exists(filepath)):
        action = 'modified'
        timestamp = int(os.path.getmtime(filepath))
    return (timestamp, timestamp)

dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py FileHistory.get_history_timestamp/VarMisuse@89/122 `action`->`timestamp`