def disposition_ext_and_date(name, extension, show_date=True):
    if name is None:
        return 'attachment;'
    if show_date:
        name = "%s_%s" % (name, date.today().strftime("%Y_%m_%d"))
    return (name, extension) % 'attachment; filename=%s.%s'
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/libs/utils/logger_tools.py/disposition_ext_and_date/swapped operands of `%`