Add summary and activity screens, remove private datasets from counts
[ckanext-dga-stats.git] / ckanext / dga_stats / stats.pyc
Alex Sadleir 1
2
3 ddl j Z e
4
5
6 c
7
8
9
10
11 table_nameR"R$R%R&R R'R(R)R*tGroupR,R-( R.R&R:RR7R0R;R8t
12
13
14
15 kr| S|dkrbg| D]6\}
16
17
18 package_idR#R!R"R$R%R&R R'R(R)R*tTagR,R-( R.R&treturned_tag_infoRCRDRRt
19 tag_columnR7tres_colRFR8tres_tags((sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pyttop_tagsCs*         Cc
20
21
22
23
24 t__name__t
25
26
27
28 @param weeks_ago: specify how many weeks ago to give count for
29 (0 = this week so far)
30
31 @param weeks_ago: specify how many weeks ago to give count for
32 (0 = this week so far)
33
34
35
36 @return: Returns list of revisions and date of them, in
37 format: [(id, date), ...]
38
39
40 @return: Returns list of new pkgs and date when they were created, in
41 format: [(id, date_ordinal), ...]
42
43
44
45 @return: Returns list of deleted pkgs and date when they were deleted, in
46 format: [(id, date_ordinal), ...]
47
48
49
50 |d7}ng}
51
52
53
54
55
56
57
58
59 ||
60
61
62
63
64
65 date_fieldRkRh(R.(sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pytobjects_by_week&sB       )   s %s_by_week_%sRzR{(
66
67
68
69 @param type: Specifies what to return about the specified week:
70 "package_addition_rate" number of new packages
71 "package_revision_rate" number of package revisions
72 "new_packages" a list of the packages created
73 in a tuple with the date.
74 "deleted_packages" a list of the packages deleted
75 in a tuple with the date.
76 @param dates: date range of interest - a tuple:
77 (start_date, end_date)
78
79 object_idstobjects_in_a_weekR1((sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pyRcYs.        
80   
81
82  16(RtpylonsRt
83 sqlalchemyRRRRt ckan.pluginstpluginstpt
84 ckan.modelR ttoolkittasboolR,R|Rt get_cacheRR~RRRBRR_(((sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pyt<module>s "  h