@@ -0,0 +1,1063 @@
+from datetime import datetime%0Afrom portality.core import app%0Aimport csv%0Afrom portality.models import Suggestion%0A%0Adef change_status(ids, new_status):%0A    for id in ids:%0A        a = Suggestion.pull(id)%0A        a.set_application_status(new_status)%0A        a.save()%0A%0Aif __name__ == %22__main__%22:%0A    print 'Starting %7B0%7D.'.format(datetime.now())%0A%0A    import argparse%0A    parser = argparse.ArgumentParser()%0A    parser.add_argument(%22-c%22, %22--csv%22, help=%22csv containing ids to change%22)%0A    parser.add_argument(%22-s%22, %22--status%22, help=%22new status to set%22)%0A    args = parser.parse_args()%0A%0A    if app.config.get(%22SCRIPTS_READ_ONLY_MODE%22, False):%0A        print %22System is in READ-ONLY mode, enforcing read-only for this script%22%0A        args.write = False%0A%0A    if not args.csv or not args.status:%0A        print %22You must provide both the -c and -s options. Exiting.%22%0A        exit(1)%0A%0A    with open(args.csv, %22r%22) as f:%0A        reader = csv.reader(f)%0A        ids = %5Brow%5B0%5D for row in reader%5D%0A        change_status(ids, args.status)%0A%0A    print 'Finished %7B0%7D.'.format(datetime.now())

add script to flip application status, so we can change the status of items that are accepted to something that can be edited