Remove unused keyword parameter

Signed-off-by: Michal Čihař <michal@cihar.com>
Remove rarely used all_acl methods for SubProject and Translation

These were used only in sitemaps and it's better to put the code
directly there to avoid circular dependencies.

Signed-off-by: Michal Čihař <michal@cihar.com>
Simplify imports

Signed-off-by: Michal Čihař <michal@cihar.com>
Simplify fetching secondary translations

Signed-off-by: Michal Čihař <michal@cihar.com>
Get rid of one cyclic import

Signed-off-by: Michal Čihař <michal@cihar.com>
Avoid not needed import and simplify query

Signed-off-by: Michal Čihař <michal@cihar.com>
Be less restrictive for language part of URL

People might use different strings here, so let's not be strict about
language name format and allow anything.

Signed-off-by: Michal Čihař <michal@cihar.com>
Simplify getting last timestamp

Signed-off-by: Michal Čihař <michal@cihar.com>
Simplify imports

Signed-off-by: Michal Čihař <michal@cihar.com>
Simplify code as stale checks should be now automatically deleted

Signed-off-by: Michal Čihař <michal@cihar.com>
Update failing check flag using signal

Signed-off-by: Michal Čihař <michal@cihar.com>
Update comment flag using signal

This should also fix out of date stat counters on deleting comment.

Signed-off-by: Michal Čihař <michal@cihar.com>
Update suggestion flag using signal

Signed-off-by: Michal Čihař <michal@cihar.com>
Remove get_review_url method

It was used in single place where the unit object is available as
well, so it's better to get the URL directly from it.

Signed-off-by: Michal Čihař <michal@cihar.com>
Remove unused code

Signed-off-by: Michal Čihař <michal@cihar.com>
Fix method name

Signed-off-by: Michal Čihař <michal@cihar.com>
Add missing code

Signed-off-by: Michal Čihař <michal@cihar.com>
Reintroduce safety check

Signed-off-by: Michal Čihař <michal@cihar.com>
Simplify code for fetching last change

Signed-off-by: Michal Čihař <michal@cihar.com>