I read the following joke
The Hotdog-bun Boy came home from school one day. His mother looked at him and said, “You look so unhappy. Did something go wrong in school today?”
“Yes,” he answered. “I hate history class.”
“Why is that?” asked the Hotdog-bun Boy’s mother.
“Because we read and read, and we listen to the teacher talk, and we have to memorize so many facts, but we never learn anything about Hotdog buns.”
“Now son,” said the mother, “how many times do I have to tell you? History is written by the wieners.”
Reference to "History is written by the wieners."
Does wiener is scene sarcasm and mean penis here?