Add organisation public/private dataset count page
[ckanext-dga-stats.git] / ckanext / dga_stats / stats.pyc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90


ddljZe


RS(
i
c




table_nameR$R%R&RR'R(R)R*tGroupR,R-(R.R&R:R7R0R;R8t
res_groups((sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pytlargest_groups5s'*	Cc


jjt




kr|	S|dkrbg|	D]6\}


package_idR#R!R"R$R%R&RR'R(R)R*tTagR,R-(
R.R&treturned_tag_infoRERFRRt
tag_columnR7tres_colRHR8tres_tags((sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pyttop_tagsOs*		Cc







        @param weeks_ago: specify how many weeks ago to give count for
                          (0 = this week so far)

        @param weeks_ago: specify how many weeks ago to give count for
                          (0 = this week so far)



        @return: Returns list of revisions and date of them, in
                 format: [(id, date), ...]


        @return: Returns list of new pkgs and date when they were created, in
                 format: [(id, date_ordinal), ...]



        @return: Returns list of deleted pkgs and date when they were deleted, in
                 format: [(id, date_ordinal), ...]



|d7}ng}








||





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}(



        @param type: Specifies what to return about the specified week:
                     "package_addition_rate" number of new packages
                     "package_revision_rate" number of package revisions
                     "new_packages" a list of the packages created
                     in a tuple with the date.
                     "deleted_packages" a list of the packages deleted
                     in a tuple with the date.
        @param dates: date range of interest - a tuple:
                     (start_date, end_date)

object_idstobjects_in_a_weekR1((sO/home/maxious/ckan/lib/default/src/ckanext-dga-stats/ckanext/dga_stats/stats.pyRees.				



16(RtpylonsRt
sqlalchemyRRRRtckan.pluginstpluginstpt