add recent datasets
[ckanext-dga-stats.git] / ckanext / dga_stats / stats.pyc
1
2
3 ddl j Z e
4
5
6 RS(
7 i
8 c
9
10
11
12
13 table_nameR$R%R&R R'R(R)R*tGroupR,R-(R.R&R:R7R0R;R8t
14 res_groups((sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pytlargest_groups5s '* Cc
15
16
17 j jt
18
19
20
21
22 kr| S|dkrbg| D]6\}
23
24
25 package_idR#R!R"R$R%R&R R'R(R)R*tTagR,R-( R.R&treturned_tag_infoRERFRRt
26 tag_columnR7tres_colRHR8tres_tags((sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pyttop_tagsOs*         Cc
27
28
29
30
31
32
33
34 @param weeks_ago: specify how many weeks ago to give count for
35 (0 = this week so far)
36
37 @param weeks_ago: specify how many weeks ago to give count for
38 (0 = this week so far)
39
40
41
42 @return: Returns list of revisions and date of them, in
43 format: [(id, date), ...]
44
45
46 @return: Returns list of new pkgs and date when they were created, in
47 format: [(id, date_ordinal), ...]
48
49
50
51 @return: Returns list of deleted pkgs and date when they were deleted, in
52 format: [(id, date_ordinal), ...]
53
54
55
56 |d7}ng}
57
58
59
60
61
62
63
64
65 ||
66
67
68
69
70
71 date_fieldRmRj(R.(sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pytobjects_by_week2sB       )   s %s_by_week_%sR|R}(
72
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)
84
85 object_idstobjects_in_a_weekR1((sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pyRees.        
86   
87
88  16(RtpylonsRt
89 sqlalchemyRRRRt ckan.pluginstpluginstpt
90