Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no module was access until now doesn't work right? #35

Closed
Jarvil opened this issue Jan 3, 2019 · 3 comments
Closed

no module was access until now doesn't work right? #35

Jarvil opened this issue Jan 3, 2019 · 3 comments

Comments

@Jarvil
Copy link

Jarvil commented Jan 3, 2019

Hello,

How can I have a student "Moodletuki4 Oppilasrooli4" with yellow triangle with message "no module was access until now" on "Hits distribution" page while he has in "content access" -tab Access percentage of 2.6%.

Also "hits distribution" page shows he has 0 accessed resources.

cont1

cont2

@Jarvil
Copy link
Author

Jarvil commented Jan 3, 2019

Are content, module and resource access three separate things? If so how are they specified?

@Urpokarhu1
Copy link

Hello,

I'm sorry I must have missed your answer, is this a bug or not?

@marceloschmitt
Copy link
Owner

Ok. Let me see.
The query is this:

SELECT userid+(week1000000), userid, firstname, lastname, email, week, number
FROM (
SELECT userid, week, COUNT(
) as number
FROM (
SELECT log.userid, objecttable, objectid,
FLOOR((((log.timecreated + ?) / 86400) - (?/86400))/7) as week
FROM {logstore_standard_log} log
WHERE courseid = ? AND action = 'viewed' AND target = 'course_module'
AND log.timecreated >= ? AND log.userid $insql
GROUP BY userid, week, objecttable, objectid
) as temp
GROUP BY userid, week
) as temp2
LEFT JOIN {user} usr ON usr.id = temp2.userid
ORDER by LOWER(firstname), LOWER(lastname), userid, week

action = 'viewed' AND target = 'course_module' - parameters to select from log table.

So, it is everything that was accessed in the course. They are all the same. It means that you discover something to fix in the context of the interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants