mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Trying to not use greater than
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
var frontpage_lists = function(msg, socket) {
|
function frontpage_lists(msg, socket) {
|
||||||
if(!msg.hasOwnProperty('version') || msg.version != VERSION || msg.version == undefined) {
|
if(!msg.hasOwnProperty('version') || msg.version != VERSION || msg.version == undefined) {
|
||||||
socket.emit("update_required");
|
socket.emit("update_required");
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("gotten second ", Functions.get_time());
|
console.log("gotten second ", Functions.get_time());
|
||||||
db.collection("frontpage_lists").find({frontpage:true, count: {$ne: 0}}, function(err, docs){
|
db.collection("frontpage_lists").find({frontpage:true}, function(err, docs){
|
||||||
console.log("gotten third ", Functions.get_time());
|
console.log("gotten third ", Functions.get_time());
|
||||||
db.collection("connected_users").find({"_id": "total_users"}, function(err, tot){
|
db.collection("connected_users").find({"_id": "total_users"}, function(err, tot){
|
||||||
console.log("sending frontpage ", Functions.get_time());
|
console.log("sending frontpage ", Functions.get_time());
|
||||||
|
|||||||
2
server/public/assets/dist/main.min.js
vendored
2
server/public/assets/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -35,8 +35,8 @@ var Frontpage = {
|
|||||||
var num = 0;
|
var num = 0;
|
||||||
var pinned;
|
var pinned;
|
||||||
|
|
||||||
/*for(var i = 0; i < lists.length; i++) {
|
for(var i = 0; i < lists.length; i++) {
|
||||||
if(!lists[i].hasOwnProperty("viewers")){
|
/*if(!lists[i].hasOwnProperty("viewers")){
|
||||||
lists[i].viewers = 0;
|
lists[i].viewers = 0;
|
||||||
}
|
}
|
||||||
if(!lists[i].hasOwnProperty("accessed")) {
|
if(!lists[i].hasOwnProperty("accessed")) {
|
||||||
@@ -47,9 +47,13 @@ var Frontpage = {
|
|||||||
} else if(lists[i].pinned == 1) {
|
} else if(lists[i].pinned == 1) {
|
||||||
pinned = lists[i];
|
pinned = lists[i];
|
||||||
delete lists[i];
|
delete lists[i];
|
||||||
}
|
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
if(lists[i].count == 0) {
|
||||||
|
delete lists[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(popular) {
|
if(popular) {
|
||||||
lists = lists.sort(Helper.predicate({
|
lists = lists.sort(Helper.predicate({
|
||||||
name: 'pinned',
|
name: 'pinned',
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ $().ready(function(){
|
|||||||
|
|
||||||
setup_no_connection_listener();
|
setup_no_connection_listener();
|
||||||
|
|
||||||
/*try{
|
try{
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://api.github.com/users/zoff-music/received_events",
|
url: "https://api.github.com/users/zoff-music/received_events",
|
||||||
@@ -189,7 +189,7 @@ $().ready(function(){
|
|||||||
});
|
});
|
||||||
} catch(error){
|
} catch(error){
|
||||||
Helper.log("Error with fetching GitHub commit info");
|
Helper.log("Error with fetching GitHub commit info");
|
||||||
}*/
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user