Switch to unified view

a/scripts/create-allura-sitemap.py b/scripts/create-allura-sitemap.py
...
...
91
            creds.clear()
91
            creds.clear()
92
            if len(locs) >= options.urls_per_file:
92
            if len(locs) >= options.urls_per_file:
93
                write_sitemap(locs[:options.urls_per_file], file_count)
93
                write_sitemap(locs[:options.urls_per_file], file_count)
94
                del locs[:options.urls_per_file]
94
                del locs[:options.urls_per_file]
95
                file_count += 1
95
                file_count += 1
96
            session(p).clear()
96
            M.main_orm_session.clear()
97
        ThreadLocalORMSession.close_all()
97
        ThreadLocalORMSession.close_all()
98
    while locs:
98
    while locs:
99
        write_sitemap(locs[:options.urls_per_file], file_count)
99
        write_sitemap(locs[:options.urls_per_file], file_count)
100
        del locs[:options.urls_per_file]
100
        del locs[:options.urls_per_file]
101
        file_count += 1
101
        file_count += 1