Fix missing package definition
[ckanext-dga-stats.git] / ckanext / dga_stats / stats.pyc
Alex Sadleir 1
Maxious 2
Alex Sadleir 3 ddl j Z e
4
Maxious 5
Alex Sadleir 6 RS(
7 i
Alex Sadleir 8 c
9
10
Maxious 11
12
Alex Sadleir 13 table_nameR$R%R&R R'R(R)R*tGroupR,R-(R.R&R:R7R0R;R8t
Maxious 14 res_groups((sD/home/maxious/pyenv/src/ckanext-dga-stats/ckanext/dga_stats/stats.pytlargest_groups5s '* Cc
Alex Sadleir 15
16
17 j jt
18
Maxious 19
Alex Sadleir 20
21
22 kr| S|dkrbg| D]6\}
23
Alex Sadleir 24
25 package_idR#R!R"R$R%R&R R'R(R)R*tTagR,R-( R.R&treturned_tag_infoRERFRRt
Maxious 26 tag_columnR7tres_colRHR8tres_tags((sD/home/maxious/pyenv/src/ckanext-dga-stats/ckanext/dga_stats/stats.pyttop_tagsOs*         Cc
Alex Sadleir 27
28
Maxious 29
30
31
Alex Sadleir 32
Maxious 33
Alex Sadleir 34 @param weeks_ago: specify how many weeks ago to give count for
35 (0 = this week so far)
Maxious 36
Alex Sadleir 37 @param weeks_ago: specify how many weeks ago to give count for
38 (0 = this week so far)
Maxious 39
40
Alex Sadleir 41
42 @return: Returns list of revisions and date of them, in
43 format: [(id, date), ...]
Maxious 44
Alex Sadleir 45
46 @return: Returns list of new pkgs and date when they were created, in
47 format: [(id, date_ordinal), ...]
Maxious 48
49
50
Alex Sadleir 51 @return: Returns list of deleted pkgs and date when they were deleted, in
52 format: [(id, date_ordinal), ...]
53
54
Maxious 55
Alex Sadleir 56 |d7}ng}
57
58
59
Alex Sadleir 60
Maxious 61
62
Alex Sadleir 63
64
65 ||
66
67
Maxious 68
69
Alex Sadleir 70
Maxious 71 date_fieldRmRj(R.(sD/home/maxious/pyenv/src/ckanext-dga-stats/ckanext/dga_stats/stats.pytobjects_by_week3sB       )   s %s_by_week_%sR|R}(
72
Alex Sadleir 73
74
75 @param type: Specifies what to return about the specified week:
76 "package_addition_rate" number of new packages
77 "package_revision_rate" number of package revisions
78 "new_packages" a list of the packages created
79 in a tuple with the date.
80 "deleted_packages" a list of the packages deleted
81 in a tuple with the date.
82 @param dates: date range of interest - a tuple:
83 (start_date, end_date)
Alex Sadleir 84
Maxious 85 object_idstobjects_in_a_weekR1((sD/home/maxious/pyenv/src/ckanext-dga-stats/ckanext/dga_stats/stats.pyRefs.        
Alex Sadleir 86   
Maxious 87
88  16(RtpylonsRt
Alex Sadleir 89 sqlalchemyRRRRt ckan.pluginstpluginstpt
Maxious 90