I dug through the code and turns out the post read table does store when its read (with number of comments when it was read stored in a person post aggregates table), it just only stores it for people from your instance so I cant get accurate numbers from all of lemmy (and why it seemed like there was a low amount)
[Rust] 11157/6740
use std::fs;
const m: [(&str, u32); 10] = [
("zero", 0),
("one", 1),
("two", 2),
("three", 3),
("four", 4),
("five", 5),
("six", 6),
("seven", 7),
("eight", 8),
("nine", 9)
];
fn main() {
let s = fs::read_to_string("data/input.txt").unwrap();
let mut u = 0;
for l in s.lines() {
let mut h = l.chars();
let mut f = 0;
let mut a = 0;
for n in 0..l.len() {
let u = h.next().unwrap();
match u.is_numeric() {
true => {
let v = u.to_digit(10).unwrap();
if f == 0 {
f = v;
}
a = v;
},
_ => {
for (t, v) in m {
if l[n..].starts_with(t) {
if f == 0 {
f = v;
}
a = v;
}
}
},
}
}
u += f * 10 + a;
}
println!("Sum: {}", u);
}
added functionality for the two rules
- getting all communities with a certain slug
- exclude instance with domain X from above rule
was running into rate limits when trying to check every single linked instance so ive manually put in the larger ones for now

that only works for certain file types afaik. I know in 4.1 there was one time I messed with a files location and had to update manually, forget which file type it was though
Update: made !test@programming.dev and hid it from the feeds for an in-instance testing area
I've been working on a new frontend (pangora-ui) thats a similar style in terms of design. Theres some progress over in !pangora@programming.dev. These features can't be put into that though since the frontend is instance specific (lemmy-ui equivalent) and this is for all instances (join-lemmy equivalent)
Instance is chosen when theres no subcategories for what the user selected
As an example of that when someone first goes to the site they get shown the 10 main categories (technology, gaming, sports, etc.). If they select technology they are then shown the technology subcategories (programming, android, radio, general). if they select general technology that has no subcategories so they are randomly sent to one of the three general technology instances (discuss.tchncs.de, lemmy.sdf.org, or infosec.pub)
A lot of the categories only have one site it sends to but thats fine for now since it still is distributing people to the different sites based on categories
Im not looking at location data at all but in the everything/other category theres countries that can be selected to send the user to country instances
We do have a soft fork for the instance getting built up to add features on top of lemmy
Pangora is soft forked so we get changes pulled from lemmy and add new features we need for the site onto their changes (that can then push to go upstream or have for ourselves if they don't want that feature)
Pangora-UI is built from scratch to replace lemmy-ui as a frontend for the site
Should be good now, accidentally ticked the box
Its already deleted, may take a bit to federate to your instance
Community has been created at https://programming.dev/c/books
Waited a bit until I finished up a bot for it. The bot should delete any posts or comments that contain a link
Ategon
0 post score0 comment score
Ill be submitting some logos and another banner that im making in gimp later in the week
Edit: exams are pain, will do that before the end of the month