fnp
/
wolnelektury.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Prevented one form of DoS attack by limiting number of tags in query to 6.
[wolnelektury.git]
/
apps
/
catalogue
/
utils.py
1
# -*- coding: utf-8 -*-
2
3
4
def split_tags(tags):
5
result = {}
6
for tag in tags:
7
result.setdefault(tag.category, []).append(tag)
8
return result
9