piccole modifiche...

This commit is contained in:
Surya Paolo
2025-01-12 21:29:16 +01:00
parent 2b1fc9b090
commit 37970c5c91
2 changed files with 14 additions and 3 deletions

View File

@@ -210,6 +210,7 @@ export const shared_consts = {
FILTER_USER_SENZA_PROVINCE: 33554432,
FILTER_USER_SENZA_CIRCUITO: 67108864,
FILTER_USER_CON_CIRCUITO: 134217728,
FILTER_USER_ONLINE_6_MESI: 268435456,
OPTIONS_SEARCH_ONLY_FULL_WORDS: 1,
OPTIONS_SEARCH_USER_ONLY_FULL_WORDS: 2,
@@ -296,8 +297,12 @@ export const shared_consts = {
RECFILTRI_UTENTE: [
{
label: '[Tutti]',
value: 0
value: -100,
},
// {
// label: 'Online almeno da 6 mesi',
// value: 268435456, // FILTER_USER_ONLINE_6_MESI: 268435456,
// },
{
label: 'Senza Provincia',
value: 33554432, // FILTER_USER_SENZA_PROVINCE
@@ -327,11 +332,10 @@ export const shared_consts = {
value: 8388608, // shared_consts.FILTER_USER_WITHOUT_USERNAME_TELEGRAM
},
{
label: 'Telegram BOT Rimosso',
label: 'Chat "BOT RISO" eliminata',
value: 1024, //shared_consts.FILTER_USER_TELEGRAM_BLOCKED
},
],
MYTABS: [{ id: 0, table: 'none' },

View File

@@ -945,6 +945,13 @@ export default defineComponent({
filtercustom.push({
'profile.mycircuits': { $exists: true, $ne: [] }
});
} else if (item.value === shared_consts.FILTER_USER_ONLINE_6_MESI) {
const numgiorni_attivi = 30 * 6
let daytocheck = new Date();
daytocheck.setDate(daytocheck.getDate() - numgiorni_attivi);
daytocheck.setHours(0, 0, 0, 0)
filtercustom.push({ lasttimeonline: { $gt: daytocheck } })
} else if (item.value === shared_consts.FILTER_USER_SENZA_CIRCUITO) {
filtercustom.push({
$or: [